package com.thx.workfloworguser.dao;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.thx.role.model.Role;

@Repository
public class RoleImplDao {

	public List<Role> getRolesOfUser(String userId) {
		return getRoleList();
	}

	public List<Role> getAllRoles(String comId) {
		return getRoleList();
	}


	public static List<Role> getRoleList() {
		List<Role> list = new ArrayList<Role>();
		Role r1 = new Role();
		r1.setRoleId("role001");
		r1.setRoleName("总经理");
		list.add(r1);
		Role r2 = new Role();
		r2.setRoleId("role002");
		r2.setRoleName("部门经理");
		list.add(r2);

		return list;
	}

}
